Comments (3)
Good suggestion! Are you aware of any testing framework encoding failure kinds with exit codes? It'd be nice if we could just follow what others have worked out already 🙂
from smalltalkci.
I’m not aware of any convention for testing frameworks in particular. More generally, one convention is to use 1 through n for warnings, and anything above n for errors, another is to use 1 for an unspecified failure and anything above for specific failures. Following the first, the status of ‘smalltalkci’ could be 1 to warn that the tests did not pass, and following the second, the status could be 2 to specify its failure is due to the tests not passing.
I’m not sure whether it’d be useful for the status to also distinguish between the tests not passing due to failures, errors, unexpected passes or some combination of these, and whether it would make sense to also use a non-zero status to warn that the tests passed but that some of them were skipped or declared as an expected failure. The latter would probably have to be introduced as an option to ‘smalltalkci’ to not break existing uses. The status could be say 6 or greater if there was an error in ‘smalltalkci’ itself, else 5 if some tests had an error, else 4 if some tests failed, else 3 if some unexpectedly passed, else 2 if some were declared as expected failures, else 1 if some were skipped, else 0.
from smalltalkci.
Yes, something like this sounds reasonable. Maybe we leave some sort of gap between the codes, so that we can add more in the future, but that's something we can discuss in the actual implementation. I'm afraid I don't have any time to work on it myself, but I can help review if someone is willing to take a look.
Fun fact: AmigaOS uses these four exit code:
OK 0
WARN 5
ERROR 10
FAILURE 20
from smalltalkci.
Related Issues (20)
- Add Rowan v2 support to smalltalkCI HOT 1
- Failing jobs for Pharo32-xx (Linux, MacOs and Windows) HOT 4
- Update GitHub action HOT 3
- Question: How to use Windows OS with GitLab ? HOT 2
- GemStone github action runs fail on mac-os for 3.7.0 HOT 1
- [Question] How to configure merge request trigger on a GitLab server ? HOT 2
- Cannot execute extensions tag unit tests HOT 5
- Please release upgraded Squeak Trunk images to resolve conflict in update stream HOT 1
- [Bug] Error when load in new image on Windows: curl failed to download get.pharo.org/64/vm110 HOT 8
- `PackageOrganizer>>#listAtCategoryNamed:` deprecated in Pharo 12 HOT 3
- Pharo12-alpha broke Metacello HOT 1
- Metacello broken again for Pharo 12 HOT 4
- Pharo12 builds fail because they removed Time>>millisecondsToRun: HOT 2
- Unable to parse Coveralls build data HOT 11
- Github actions warning: node16 actions are deprecated HOT 1
- [Question] Is it sensible to rely on SmalltalkCI code for an asdf plugin? HOT 5
- SmalltalkCI class>>saveAndQuitImage currently broken in Pharo-11.0.0+build.725 HOT 13
- Compatibility package for Pharo HOT 1
- FFIUnsupportedUntypedLiteral error in Pharo 12 on MacOS & Windows HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smalltalkci.