Skip to content

Running coverage package over briefcase dev --test #1266

Answered by freakboy3742
BartStolarek asked this question in Q&A
Discussion options

You must be logged in to vote

So - yes it's possible, but it's not trivial, especially if you potentially want to deploy to iOS or Android.

There's an example of a working configuration in Toga's testbed app; That testbed has a bunch of additional complication because it needs to do some weird async and threading, but .

Essentially you can't use pyproject.toml (or .coveragerc, or any other file) as the source of your coverage configuration, because that file won't be in your packaged app (or on your path when briefcase dev executes); you need to use the Coverage API to configure a coverage session and generate a report. The mapping from configuration file to API is relatively straightforward, so it shouldn't be too ha…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@BartStolarek
Comment options

@freakboy3742
Comment options

Answer selected by BartStolarek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants