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

Support a fallback to an empty result-set when a csv file is missing #444

Closed
Seddryck opened this issue Jan 7, 2019 · 3 comments
Closed

Comments

@Seddryck
Copy link
Owner

Seddryck commented Jan 7, 2019

At the moment when a csv file referenced in a test is not existing, an ExternalDependencyNotFound exception is generated and the test is in error. This is a limitation in some cases where you'd expect that your test would consider your file as an empty file. Considering your file as empty could be not enough if you're using column names. In that case it would be helpful to be able to redirect to another file with just the model (columns' name).

<result-set>
  <file>
    <path>...</path>
    <if-missing behavior="redirect">
       <file> 
           <path>...</path>
       </file>
    </if-missing>
  </file>
</result-set>

or (default value ... shouldn't be serialized)

<if-missing behavior="error">

or

<if-missing behavior="empty">
@Seddryck Seddryck added this to the v1.20 milestone Jan 7, 2019
@Seddryck
Copy link
Owner Author

Seddryck commented Feb 7, 2019

  • Support for file as an element (and still support an attribute) at the XML level
  • Support for optional XML element parser with an attribute name
  • Handle of element parser as an alias for the previous file.txt!parserName
  • Support for optional XML element if-missing
  • Implement redirection behavior

Seddryck pushed a commit that referenced this issue Feb 27, 2019
…_is_missing_(#444)' into develop

# Conflicts:
#	NBi.NUnit/Builder/Helper/ScalarResolverArgsBuilder.cs
@Seddryck
Copy link
Owner Author

Seddryck pushed a commit that referenced this issue Mar 25, 2019
…_is_missing_(#444)' into develop

# Conflicts:
#	NBi.Testing/Acceptance/RuntimeOverrider.cs
@Seddryck
Copy link
Owner Author

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

1 participant