csf-dev / CSF.Screenplay

Implementation of the Screenplay pattern (aka Journey) in .NET
https://csf-dev.github.io/CSF.Screenplay/
MIT License
13 stars 1 forks source link

To learn how to use Screenplay with SpecFlow, devs must be able to read a tutorial #155

Closed craigfowler closed 2 months ago

craigfowler commented 6 years ago

The tutorial page for SpecFlow is yet to be written.

john-at-digirati commented 5 years ago

Hi @craigfowler , I was hoping to use your CSF.Screenplay code with Specflow for regression testing but without any documentation its quite difficult, especially since I've had a myriad of issues trying to get it running e.g. not recognising tests (even when following the NUnit tutorial). Any chance of documentation or a tutorial that demonstrates how to use the Screenplay pattern with your library? Thanks.

craigfowler commented 5 years ago

I've been really bad with this library and seriously neglected the documentation. I also haven't done much dev on my open source projects recently (other life priorities over the past few months). But - I haven't forgotten this and I will come back to it someday.

In the mean-time, you might be able to harvest some information from the tests in another project of mine. That's pretty much why I developed Screenplay, so that I could use it for regression testing, and over there, I do use SpecFlow.

That linked area has my .feature files, and the SpecFlow bindings, as well as Screenplay actions etc are found in the Agiil.BDD project.

There's also a screenplay integration config which will have some relevant info.

In the absence of real docs, you might be able to use these examples to get going?

john-at-digirati commented 5 years ago

Thanks Craig, I'll use the links you provided.

craigfowler commented 5 years ago

One thing I can offer, as the benefit of hindsight, is that I think I went overboard on the acceptance tests. I left my testing pyramid looking a bit like a testing hourglass.

I'm planning on using SpecFlow tags to mark up my features, so that I can convert the majority of test cases into simpler integration tests, and not full end-to-end browser tests.

I may or may not end up using screenplay for the converted ones.

craigfowler commented 4 years ago

I have just noticed/realised that I had the wiki permissions set incorrectly. Nobody would have been able to contribute to it except myself.

I have just relaxed them, so that others may contribute if they wish. In other news I am just starting to get geared up again for spare-time projects. In reality it may still be quite some time before I pick them up again in earnest, but I can at least see my return on the horizon now.