Re: Post-parsing and Enrichment test framework

2017-07-08 Thread Otto Fowler
Hi Ali, Would you consider creating a jira with some test framework requirement ideas based on your experience using GetProfileTest? On July 8, 2017 at 07:11:53, Ali Nazemian (alinazem...@gmail.com) wrote: Hi Nick, Something like GetProfileTest is exactly what I am looking for. Although

Re: Post-parsing and Enrichment test framework

2017-07-08 Thread Ali Nazemian
Hi Nick, Something like GetProfileTest is exactly what I am looking for. Although following this test case is good enough at this step, It would be great if a test-framework can be implemented to make that easier. Probably it is not a very critical requirement, but it would be nice to have it.

Re: Post-parsing and Enrichment test framework

2017-07-07 Thread Nick Allen
> > Is there any other approach to check > that through writing Java test-cases? Righting test-cases would be easier > for keeping track of changes. While the Shell is great, it does not serve as an automated, repeatable test case. An alternative approach along these lines, is to create your

Re: Post-parsing and Enrichment test framework

2017-07-07 Thread Nick Allen
For experimenting or validating specific Stellar expressions, the Stellar Shell is perfect. To do this, you just have to remember than when your Stellar expressions execute all of the fields of the message are in-scope. For example, here is a quick session where I mock-up some logic that sends a

Re: Post-parsing and Enrichment test framework

2017-07-04 Thread Ali Nazemian
Hi Simon, Yeah, it does, but we are looking for a way to mock a specific message and check some post-parse/enrichments stuff. Is that achievable via Stellar shell? Right now we are checking that either through end-to-end testing, or changing flux files to check them section by section.

Re: Post-parsing and Enrichment test framework

2017-07-04 Thread Simon Elliston Ball
You should probably use the Stellar REPL (../metron/bin/stellar -z $ZK) which gives you a kind of Stellar playground. Simon > On 4 Jul 2017, at 15:02, Ali Nazemian wrote: > > Hi all, > > I was wondering if there is a test framework we can use for Stellar > post-parsing

Post-parsing and Enrichment test framework

2017-07-04 Thread Ali Nazemian
Hi all, I was wondering if there is a test framework we can use for Stellar post-parsing and enrichment use cases. It is very time-consuming to verify use cases end-to-end. Therefore, I am looking for a way of mocking use cases step by step to speed up our development. Regards, Ali