-
-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RFC] BATS testing setup #949
Comments
Well I introduced dev- fairly recently only. Having "installation" and "destructive" I believe still makes sense as the latter test are allowed to "destroy" a VM setup so subsequent tests need a new VM while the former are meant to imitate the install process, ideally calling the same routine that's used during install. If you have dependencies (say Java needs to be installed before OH), you need to execute multiple installation- tests one after the other on the same VM. When we change this, let's not forget to rework CONTRIBUTING.md |
My thoughts were more that there is only one test that currently uses the moniker "installation" making it a little worthless. Additionally, where do we draw the line? IMO if we follow the currently defined standard, we should be calling the Java tests "installation" as they are part of a standard installation. I hope you get the point I am trying to make. |
Just a little bit, and mind implementation. It must ensure not to run any other tests after one that was (or could have been) destructive in its impact. Running one destructive test after another destructive one could make the 2nd fail in theory, but as tests should not destroy more than necessary, it usually does not harm because their impact is on separate parts of the system so does not interfere. I think it makes sense to keep test naming. We can change the implementation to parallelize into VMs for dev- (allowed to fail), unit-, installation- and destructive- (all not allowed to fail). |
Also certain functions are unable to be used in a unattended mode (ie. FIND) therefore will never receive bats tests. |
Begins a rewrite of the openHABian core code to make it overall safer and more verbose in failure. Additionally this helps to standardize the coding format. This contains major a major rewrite of 'packages.bash', 'nodejs-apps.bash', and other minor fixes in other files as well. This also contains the proper testing functions using BATS for the rewritten code. Fixes openhab#936 Related openhab#937 openhab#949 Signed-off-by: Ethan Dye <mrtops03@gmail.com>
Begins a rewrite of the openHABian core code to make it overall safer and more verbose in failure. Additionally this helps to standardize the coding format. This contains major a major rewrite of 'packages.bash', 'nodejs-apps.bash', and other minor fixes in other files as well. This also contains the proper testing functions using BATS for the rewritten code. Fixes openhab#936 Related openhab#937 openhab#949 Signed-off-by: Ethan Dye <mrtops03@gmail.com>
Begins a rewrite of the openHABian core code to make it overall safer and more verbose in failure. Additionally this helps to standardize the coding format. This contains major a major rewrite of 'packages.bash', 'nodejs-apps.bash', and other minor fixes in other files as well. This also contains the proper testing functions using BATS for the rewritten code. Fixes openhab#936 Related openhab#937 openhab#949 Signed-off-by: Ethan Dye <mrtops03@gmail.com>
Begins a rewrite of the openHABian core code to make it overall safer and more verbose in failure. Additionally this helps to standardize the coding format. This contains major a major rewrite of 'packages.bash', 'nodejs-apps.bash', and other minor fixes in other files as well. This also contains the proper testing functions using BATS for the rewritten code. Fixes openhab#936 Related openhab#937 openhab#949 Signed-off-by: Ethan Dye <mrtops03@gmail.com>
Begins a rewrite of the openHABian core code to make it overall safer and more verbose in failure. Additionally this helps to standardize the coding format. This contains major a major rewrite of 'packages.bash', 'nodejs-apps.bash', and other minor fixes in other files as well. This also contains the proper testing functions using BATS for the rewritten code. Fixes openhab#936 Related openhab#937 openhab#949 Signed-off-by: Ethan Dye <mrtops03@gmail.com>
Begins a rewrite of the openHABian core code to make it overall safer and more verbose in failure. Additionally this helps to standardize the coding format. This contains major a major rewrite of 'packages.bash', 'nodejs-apps.bash', and other minor fixes in other files as well. This also contains the proper testing functions using BATS for the rewritten code. Fixes openhab#936 Related openhab#937 openhab#949 Signed-off-by: Ethan Dye <mrtops03@gmail.com>
Begins a rewrite of the openHABian core code to make it overall safer and more verbose in failure. Additionally this helps to standardize the coding format. This contains major a major rewrite of 'packages.bash', 'nodejs-apps.bash', and other minor fixes in other files as well. This also contains the proper testing functions using BATS for the rewritten code. Fixes openhab#936 Related openhab#937 openhab#949 Signed-off-by: Ethan Dye <mrtops03@gmail.com>
Begins a rewrite of the openHABian core code to make it overall safer and more verbose in failure. Additionally this helps to standardize the coding format. This contains major a major rewrite of 'packages.bash', 'nodejs-apps.bash', and other minor fixes in other files as well. This also contains the proper testing functions using BATS for the rewritten code. Fixes openhab#936 Related openhab#937 openhab#949 Signed-off-by: Ethan Dye <mrtops03@gmail.com>
Begins a rewrite of the openHABian core code to make it overall safer and more verbose in failure. Additionally this helps to standardize the coding format. This contains major a major rewrite of 'packages.bash', 'nodejs-apps.bash', and other minor fixes in other files as well. This also contains the proper testing functions using BATS for the rewritten code. Fixes openhab#936 Related openhab#937 openhab#949 Signed-off-by: Ethan Dye <mrtops03@gmail.com>
Begins a rewrite of the openHABian core code to make it overall safer and more verbose in failure. Additionally this helps to standardize the coding format. This contains major a major rewrite of 'packages.bash', 'nodejs-apps.bash', and other minor fixes in other files as well. This also contains the proper testing functions using BATS for the rewritten code. Fixes openhab#936 Related openhab#937 openhab#949 Signed-off-by: Ethan Dye <mrtops03@gmail.com>
Begins a rewrite of the openHABian core code to make it overall safer and more verbose in failure. Additionally this helps to standardize the coding format. This contains major a major rewrite of 'packages.bash', 'nodejs-apps.bash', and other minor fixes in other files as well. This also contains the proper testing functions using BATS for the rewritten code. Fixes openhab#936 Related openhab#937 openhab#949 Signed-off-by: Ethan Dye <mrtops03@gmail.com>
Also this includes further changes in terms of the Standarization and Rewrite. Fixes openhab#949 Related openhab#519 openhab#625 Signed-off-by: Ethan Dye <mrtops03@gmail.com>
Also this includes further changes in terms of the Standarization and Rewrite. Fixes openhab#949 Related openhab#519 openhab#625 Signed-off-by: Ethan Dye <mrtops03@gmail.com>
Also this includes further changes in terms of the Standarization and Rewrite. Fixes openhab#949 Related openhab#519 openhab#625 Signed-off-by: Ethan Dye <mrtops03@gmail.com>
Also this includes further changes in terms of the Standarization and Rewrite. Fixes openhab#949 Related openhab#519 openhab#625 Signed-off-by: Ethan Dye <mrtops03@gmail.com>
Also this includes further changes in terms of the Standarization and Rewrite. Fixes openhab#949 Related openhab#519 openhab#625 Signed-off-by: Ethan Dye <mrtops03@gmail.com>
Also this includes further changes in terms of the Standarization and Rewrite. Fixes openhab#949 Related openhab#519 openhab#625 Signed-off-by: Ethan Dye <mrtops03@gmail.com>
Also this includes further changes in terms of the Standarization and Rewrite. Fixes openhab#949 Related openhab#519 openhab#625 Signed-off-by: Ethan Dye <mrtops03@gmail.com>
Also this includes further changes in terms of the Standarization and Rewrite. Fixes openhab#949 Related openhab#519 openhab#625 Signed-off-by: Ethan Dye <mrtops03@gmail.com>
Also this includes further changes in terms of the Standarization and Rewrite. Fixes openhab#949 Related openhab#519 openhab#625 Signed-off-by: Ethan Dye <mrtops03@gmail.com>
Also this includes further changes in terms of the Standarization and Rewrite. Fixes openhab#949 Related openhab#519 openhab#625 Signed-off-by: Ethan Dye <mrtops03@gmail.com>
Also this includes further changes in terms of the Standarization and Rewrite. Fixes openhab#949 Related openhab#519 openhab#625 Signed-off-by: Ethan Dye <mrtops03@gmail.com>
Also this includes further changes in terms of the Standarization and Rewrite. Fixes openhab#949 Related openhab#519 openhab#625 Signed-off-by: Ethan Dye <mrtops03@gmail.com>
Also this includes further changes in terms of the Standarization and Rewrite. Fixes openhab#949 Related openhab#519 openhab#625 Signed-off-by: Ethan Dye <mrtops03@gmail.com>
Also this includes further changes in terms of the Standarization and Rewrite. Fixes openhab#949 Related openhab#519 openhab#625 Signed-off-by: Ethan Dye <mrtops03@gmail.com>
Also this includes further changes in terms of the Standarization and Rewrite. Fixes openhab#949 Related openhab#519 openhab#625 Signed-off-by: Ethan Dye <mrtops03@gmail.com>
Also this includes further changes in terms of the Standarization and Rewrite. Fixes openhab#949 Related openhab#519 openhab#625 Signed-off-by: Ethan Dye <mrtops03@gmail.com>
Also this includes further changes in terms of the Standarization and Rewrite. Fixes openhab#949 Related openhab#519 openhab#625 Signed-off-by: Ethan Dye <mrtops03@gmail.com>
Also this includes further changes in terms of the Standarization and Rewrite. Fixes openhab#949 Related openhab#519 openhab#625 Signed-off-by: Ethan Dye <mrtops03@gmail.com>
Also this includes further changes in terms of the Standarization and Rewrite. Fixes openhab#949 Related openhab#519 openhab#625 Signed-off-by: Ethan Dye <mrtops03@gmail.com>
I personally believe that we should rethink the way that we categorize BATS tests (ie. 'destructive' and 'installation') as right now the way they are setup is very blurred when it comes to categorization.
I believe that this happened because of the many changes in the build system and the way that we test.
I think that we should move towards not categorizing the BATS tests but rather treat them as a single unit to test the correctness of all of the functions that can be tested with BATS. I can start implementing this with #937
Thoughts?
The text was updated successfully, but these errors were encountered: