hypermedia-app / hypertest

Hypermedia-driven API tests
https://testing.hypermedia.app
3 stars 3 forks source link

Case-sensitive or not? #12

Closed tpluscode closed 5 years ago

tpluscode commented 5 years ago

In all my snippets I have been pretty much assuming the syntax to be case-sensitive. For example Expect Property is good but expect property is not.

Should we keep it that way? A more relaxed DSL would be better maybe?

mchlrch commented 5 years ago

At the moment, the syntax is case-sensitive. We could change that and ignore case for keywords be modifying the configuration in https://github.com/zazuko/api-testing-dsl/blob/master/com.zazuko.apitesting.dsl/com.zazuko.apitesting.dsl/src/com/zazuko/apitesting/dsl/GenerateApiTestingDsl.mwe2

See: https://stackoverflow.com/questions/30889847/match-string-in-xtext-regardless-of-upper-lower-case

tpluscode commented 5 years ago

Any opinion? I'd personally like to keep it sensitive but 🤷‍♂

mchlrch commented 5 years ago

I prefer to keep it case sensitive as well. It's the default and I don't see a disadvantage sticking to the default.

tpluscode commented 5 years ago

Ok, keeping the current behaviour then 👍