Problem with mainCalculateSingleReturn

args passed to mainCalculateSingleReturn does not contains end date in it it just contains trades.json
I am testing the function by running './gradlew run --args=“trades.json 2020-01-01” ’

The second argument provided in the args is the end-date :slight_smile:

i can not access it there is nothing at args[1]

refer to this FAQ :slight_smile:
https://forum.crio.do/t/noenddatedata-test-failing/7929/2

args only contains trades.json it does not contains end date i checked its value at the starting of mainCalculateSingleReturn function and also inside main function before args is being passed to mainCalculateSingleReturn using debugger

It got solved after refreshing the workspace