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

Some BDD feature files aren't being run #499

Open
danielthepope opened this issue Jul 29, 2019 · 4 comments
Open

Some BDD feature files aren't being run #499

danielthepope opened this issue Jul 29, 2019 · 4 comments

Comments

@danielthepope
Copy link
Collaborator

The following files exist, but aren't being referenced in any test_*.py files, so they aren't being run.

features/styles/ebuttd_segmenter.feature
features/styles/fontSize_inherited.feature
features/styles/padding.feature

I was looking for a step definition in ebuttd_segmenter but couldn't find it!

@danielthepope
Copy link
Collaborator Author

All feature files

find . | grep \\.feature | sort | uniq | cut -c15-

Feature files referenced in tests

ag -Gtest_ "scenarios\(" | grep scenarios | awk -F\' '{print $2}' | sort | uniq

@nigelmegitt
Copy link
Collaborator

Thanks for spotting that @danielthepope - I don't know why it's in that state, or if those unreferenced features should be removed for example.

@nigelmegitt
Copy link
Collaborator

Looking at this more deeply, there seems to be a mixture of things happening. I think ebuttd_segmenter.feature was made by @EyalLavi as test cases pre-coding and nobody ever coded for them. For example it includes test steps:

Given two EBU-TT Live documents

and

When we merge the documents and convert to an EBU-TT-D document

but there is no step definition defined anywhere for them.

On the other hand it looks like fontSize_inherited.feature and padding.feature could be run almost unchanged. I tried running them and fontSize_inherited.feature runs fine, but padding.feature is currently missing a step definition for it contains <style_attribute> value <S2_value> applied to region.

@nigelmegitt
Copy link
Collaborator

Hmm, padding.feature currently seems to assume that the resulting computed_value is always expressed as a set of % values, but the code isn't doing that magic. I'll commit a change that runs the test, but it'll skip the dodgy lines until we work out what the code should be doing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants