Not only do you have to perform the music you want to publish. But you also have to be sure that what is written down is what you are actually doing. Often I edit a piece of music at the beginning of the learning process, and then, as I’m learning it, make changes here and there and don’t bother to write down the changes. I’m much more careful about that now. But for years when I’d go back to a piece I had played years before, I had to figure out what I had actually done, since what was written (pedal changes, fingerings) did not always match the final product.