Skip to content

#33 validator validation#77

Merged
craigfowler merged 51 commits intomasterfrom
feature/33-validator-validation
Feb 12, 2023
Merged

#33 validator validation#77
craigfowler merged 51 commits intomasterfrom
feature/33-validator-validation

Conversation

@craigfowler
Copy link
Member

Resolves #33 - validator can now self-validate.

This is a prerequisite to writing a validator-validator.
Also add a couple of extra standard rules (enum constants).
This allows a validator builder to import rules
for validating its base type.  Also fix issue with manifest.
This is just the first test, to prove that in a "happy path"
scenario, the validator-validator can validate itself.
Oddly, I'm not being shown coverage for this test in SonarCloud.
It seems something about AppVeyor/SonarCloud getting coverage
has changed or broken, so moving it to command script to try and
restore it.
This uses the technique recommended by SonarCloud
at https://docs.sonarcloud.io/enriching/test-coverage/dotnet-test-coverage/

It also attempts to get test results uploaded to AppVeyor.
Note that Validation has its own Parallelizable attribute,
easy to mudle them up!
This removes all of the class inheritance from the Validation
Manifest object model (I will do the Manifest Model later).
This is done to make it easier to deal with recursive manifest
items.  It will now be easier to create:

* Recursive collection items
* Recursive polymorphic types
This moves the assembling of manifest items into
a context class, rather than trying to do it inside the builders.
The validation-manifest validator needs review, because the
object model has changed somewhat since it was first designed.
Also, I am unaware of my current test coverage %.

This commit should successfully build though.
This marks up some non-implemented functions, so
SonarCloud reminds me about them, as well as fixing
a minor tech issue.
@craigfowler craigfowler merged commit 436b5cd into master Feb 12, 2023
@craigfowler craigfowler deleted the feature/33-validator-validation branch February 12, 2023 15:05
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.

As a dev performing validation, if the validation manifest is invalid then I want to see an appropriate error

1 participant