Skip to content
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

Update and simplify tox config file to ensure test coverage #119

Merged
merged 1 commit into from
Dec 13, 2023

Conversation

nhuet
Copy link
Contributor

@nhuet nhuet commented Dec 4, 2023

Surprisingly, having the section [testenv:py39-linux-nodeellip] after the more generic section
[testenv:py{39,311}-{linux,macos,win}-nodeellip] skip the more specific section definition.

So the coverage was missed. This can be corrected by putting [testenv:py39-linux-nodeellip] before [testenv:py{39,311}-{linux,macos,win}-nodeellip] but this not intuitive.

We choose here to do everything in the main section [testenv] by making full use of generative names and factor conditions.

In particular, to have a command be used if a given factor is absent, by using an exclamation mark:

!nodeellip: ...

Surprisingly, having the section [testenv:py39-linux-nodeellip] after
the more generic section
[testenv:py{39,311}-{linux,macos,win}-nodeellip] skip the more specific
section definition.

So the coverage was missed. This can be corrected by putting
[testenv:py39-linux-nodeellip] before [testenv:py{39,311}-{linux,macos,win}-nodeellip]
but this not intuitive.

We choose here to do everything in the main section [testenv] by making
full use of generative names and factor conditions.

In particular, to have a command be used if a given factor is absent, by
using an exclamation mark:

	!nodeellip: ...
@ducoffeM ducoffeM merged commit f592223 into airbus:keras3 Dec 13, 2023
10 checks passed
@nhuet nhuet deleted the tox_cov branch January 11, 2024 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants